# _*_ coding=utf-8 _*_
# __author__ = 'SRF'
# __date__ = '2020/5/25 17:40'

def ip2int(ip):
    lis = ip.split('.')
    return int("%02x%02x%02x%02x" % (int(lis[0]), int(lis[1]), int(lis[2]), int(lis[3])), 16)


def int2ip(num):
    hexIP = str('%08x' % num)
    return str("%i.%i.%i.%i" % (int(hexIP[0:2], 16), int(hexIP[2:4], 16), int(hexIP[4:6], 16), int(hexIP[6:8], 16)))


def ip2hex(ip):
    lis = ip.split('.')
    return str("%02x%02x%02x%02x" % (int(lis[0]), int(lis[1]), int(lis[2]), int(lis[3])))


if __name__ == '__main__':
    # 遍历网段所有的IP
    res = [int2ip(x) for x in range(ip2int("192.168.1.100"), ip2int("192.168.2.200") + 1)]
    for i in res:
        print(i)
